-
Notifications
You must be signed in to change notification settings - Fork 2.6k
draft: add evals/scripts/setup_ubuntu.sh #2744
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
| echo -e " q) quit\n" | ||
| } | ||
|
|
||
| has_asdf_plugin() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is identical to the existing implementation. Consider reusing the existing function instead of duplicating it.
- function
has_asdf_plugin(setup.sh)
| fi | ||
|
|
||
| if ! grep -q "OPENROUTER_API_KEY" .env; then | ||
| read -p "🔐 Enter your OpenRouter API key (sk-or-v1-...): " openrouter_api_key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use secure input for sensitive API keys. Consider using read -s instead of read -p to hide the OpenRouter API key as it's being entered.
| read -p "🔐 Enter your OpenRouter API key (sk-or-v1-...): " openrouter_api_key | |
| read -s -p "🔐 Enter your OpenRouter API key (sk-or-v1-...): " openrouter_api_key |
| @@ -0,0 +1,316 @@ | |||
| #!/usr/bin/env bash | |||
|
|
|||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding strict bash options (e.g. set -euo pipefail) immediately after the shebang. This ensures that errors, unset variables, and pipeline failures stop the script early, reducing potential subtle bugs.
Context
Implementation
Screenshots
How to Test
Get in Touch
Important
Adds
setup_ubuntu.shscript for automating development environment setup on Ubuntu, including language installations, tool configurations, and environment setup.setup_ubuntu.shtoevals/scripts/for setting up development environments on Ubuntu.curl,git,build-essential,pkg-config,libssl-dev.asdffor managing language versions and plugins fornodejs,python,golang,rust,java.pnpmandGitHub CLI.cte/evalsrepository if not present..env.sampleto.envif.envdoes not exist.pnpm.This description was created by
for 6ff925c. It will automatically update as commits are pushed.